const path = require('path')
function resolve (dir) {return path.join(__dirname, dir)}
module.exports = {
    outputDir:"dist",
    devServer:{
        open:true,
        proxy:{
            "/api":{
                target:"http://182.92.128.115/"
            }
        }
    },
    lintOnSave:false,
    configureWebpack:{
        resolve:{
            alias:{
                api:resolve("src/api"),
                components:resolve("src/components"),
                pages:resolve("src/pages"),
                router:resolve("src/router"),
                routes:resolve("src/routes"),
                store:resolve("src/store"),
                mock:resolve("src/mock")
            }
        }
    }
}